package com.myfoon.helper;

import java.io.IOException;

import javax.servlet.http.HttpServletResponse;

public class RedirectHelper {
    public RedirectHelper() {
    }
    
    public static void redirectToHome(HttpServletResponse response) throws IOException {
        response.sendRedirect("/home");
    }
    
    public static void redirectToError(HttpServletResponse response, int errorNumber) throws IOException {        
        response.sendRedirect("/error?" + String.valueOf(errorNumber));
    }
}
